#!/bin/sh

# Abort on any errors
set -e

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# GUID="$( echo `curl -s http://localhost/swift/services/guid/runMashup | awk '{print substr($0, 14, 36)}'` )"

echo Adding some starter data to Infinispan caches and Solr indexes...
curl -H "Content-Type:application/xml" -d @$DIR/fillcache.xml http://localhost/swift/services/gadget-store/runMashup &>/dev/null
echo Done.
